import {
    post
} from '@/assets/api/http';

// 获取分类 服务项目
export const getCate = (data, config) => post('/api/service/getCate', data, config);

//获取所有类目分类
export const getAllCate = (data, config) => post('/api/service/getallcate2', data, config);

// 发布任务提交接口
export const addTask = (data, config) => post('/api/service/release_task', data, config);

//获取需求大厅列表接口
export const getDemandList = (data, config) => post('/api/service/demandList', data, config);

//需求详情-类似需求
export const getSimilarDemand = (data, config) => post('/api/service/similar_demand', data, config);

//参与需求接口
export const addDemand = (data, config) => post('/api/service/submit_demand_new', data, config);

// 获取投标支付二维码
export const pc_service_demand = (data, config) => post('/api/user/pc_service_demand', data, config);

//雇佣服务商
export const addHire = (data, config) => post('/api/service/hire_service', data, config);

// 申请服务商
export const applyService = (data, config) => post('/api/service/apply', data, config);

// 服务商支付参数
export const getPayData = (data, config) => post('/api/service/getPayData', data, config);

// 获取服务商登录账号密码
export const getUserpass = (data, config) => post('/api/service/getUserpass', data, config);

// 获取所有目录分类
export const getallcate = (data, config) => post('/api/service/getallcate', data, config);

// 用户申请服务订单
export const userapplyordersubmit = (data, config) => post('/api/service/userapplyordersubmit', data, config);

// 服务商商品详情
export const getShopDetail = (data, config) => post('/api/service/shop_detail', data, config);

// 服务商详情
export const getServiceDetail = (data, config) => post('/api/service/getService_detail', data, config);

// 服务商首页
export const getUserIndex = (data, config) => post('/api/service/user_index', data, config);

// 获取服务商列表
export const getServiceList = (data, config) => post('/api/service/getServiceList', data, config);
export const getServiceInfo = (data, config) => post('/api/service/getInfo', data, config);

//商家中心-账号设置
export const serviceInfoEdit = (data, config) => post('/api/service/serviceinfo_edit', data, config);

//我的订单
export const myserviceorder = (data, config) => post('/api/user/myserviceorder', data, config);
//服务商搜索
export const getSearchShopList = (data, config) => post('/api/service/shop_list', data, config);

//获取推荐服务商
export const getRecommendServices = (data, config) => post('/api/service/recommend_services', data, config);

//获取服务商详情
export const getInfo = (data, config) => post('/api/service/getInfo', data, config);

//服务商添加商品
export const add_shop = (data, config) => post('/api/service/add_shop', data, config);

//我的需求
export const getMyDemand = (data, config) => post('/api/user/mydemandorder', data, config);

//删除我的需求
export const delMyDemand = (data, config) => post('/api/user/del_demand', data, config);

//关闭我的需求
export const closeMyDemand = (data, config) => post('/api/user/close_demand', data, config);

//服务商商品收藏
export const setCollect = (data, config) => post('/api/service/setCollect', data, config);

//服务商商品收藏
export const shop_manager_list = (data, config) => post('/api/service/shop_manager_list', data, config);

//服务商商品收藏
export const shop_edit = (data, config) => post('/api/service/shop_edit', data, config);

//服务商商品删除
export const shop_del = (data, config) => post('/api/service/shop_del', data, config);

//服务商商品收藏
export const shopStatus = (data, config) => post('/api/service/shop_status', data, config);

//购买服务商商品
export const buyShop = (data, config) => post('/api/service/user_buyshop', data, config);

//订单管理
export const getService_order = (data, config) => post('/api/service/getService_order', data, config);

//服务商给用户发送订单(末付款)
export const getuserallorder = (data, config) => post('/api/service/getuserallorder', data, config);

//订单管理-编辑
export const getService_order_edit = (data, config) => post('/api/service/getService_order_edit', data, config);

//获取需求详情
export const get_demand_id = (data, config) => post('/api/service/get_demand_id_new', data, config);

//我的订单-验收完成
export const myserviceorder_edit = (data, config) => post('/api/user/myserviceorder_edit', data, config);

//根据城市获取分类是否存在
export const get_checktype = (data, config) => post('/api/service/get_checktype', data, config);

//用户删除订单
export const delorder = (data, config) => post('/api/service/delorder', data, config);

//获取服务商保证金以及维护费
export const getall_cost = (data, config) => post('/api/service/getall_cost', data, config);


// 发送消息
export const sendmessage = (data, config) => post('/api/service/sendmessage', data, config);

// 发送消息
export const send_message = (data, config) => post('/api/index/send_message', data, config);

// 即构-获取用户信息
export const jigou_getInfo = (data, config) => post('/api/service/jigou_getInfo', data, config);

//取消待支付订单
export const closeMyOrder = (data, config) => post('/api/user/close_myorder', data, config);

//取消待支付订单
export const getapplyinfo = (data, config) => post('/api/service/getapplyinfo', data, config);

//取消待支付订单
export const getMajorList = (data, config) => post('/api/Jianghunew//get_major_list_id', data, config);

// 消息已读处理
export const check_read = (data, config) => post('/api/service/check_read', data, config);

// 延迟调用
export const delay_pushmessage = (data, config) => post('/api/service/delay_pushmessage', data, config);


// 延迟调用
export const getcate_new = (data, config) => post('/api/service/getcate_new', data, config);


// 雇禚没佣他-进入确认需求页面-新版
export const hire_service_new = (data, config) => post('/api/service/hire_service_new', data, config);


// 需求详情页面-新版
export const hire_service_detail = (data, config) => post('/api/service/hire_service_detail', data, config);


// 需求详情页面-提交-新版
export const hire_service_submit = (data, config) => post('/api/service/hire_service_submit', data, config);

// 需求详情页面-更改-新版
export const hire_service_status_update = (data, config) => post('/api/service/hire_service_status_update', data, config);


export const cancel_demand = (data, config) => post('/api/service/cancel_demand', data, config);


// 
export const service_processRefund = (data, config) => post('/api/service/service_processRefund', data, config);


// 需求拉起支付
export const pc_buy_vip = (data, config) => post('/api/user/pc_buy_service', data, config);


// 发布需求拉起的支付
export const pc_user_release_demand = (data, config) => post('/api/user/pc_user_release_demand', data, config);

// 查看号码拉起的支付
export const pc_service_look_demand = (data, config) => post('/api/user/pc_service_look_demand', data, config);

// 编辑投标
export const edit_bid = (data, config) => post('/api/service/edit_bid', data, config);


// 我的投标
export const mydemandhire = (data, config) => post('/api/user/mydemandhire', data, config);

// 保证金设置（缴纳/退保）
export const set_cashdeposit = (data, config) => post('/api/service/set_cashdeposit', data, config);

// 保证金
export const pc_service_cashdeposit = (data, config) => post('/api/user/pc_service_cashdeposit', data, config);

// 保证金明细
export const get_cashdeposit = (data, config) => post('/api/service/get_cashdeposit', data, config);

// 查看支付订单详情
export const cashdeposit_detail = (data, config) => post('/api/service/cashdeposit_detail', data, config);

